package cc.bookcloud.springboot3.auth.config;

public class TestBase64 {
    public static void main(String[] args) {
        String clientId = "my-client";
        String clientSecret = "123456";
        String base64Credentials = java.util.Base64.getEncoder().encodeToString((clientId + ":" + clientSecret).getBytes());
        System.out.println(base64Credentials);
    }
}
